package com.example.demo.client.evt.cssmqry.resource;

import com.ffcs.oss.param.in.QueryPageEvt;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author linxiao
 * @Date 2020/06/24  17:14
 */
@ApiModel(description = "查询资源权限-入参")
public class QryResourceEvt  extends QueryPageEvt implements Serializable {
    private static final long serialVersionUID = -5082196027734983253L;
    @ApiModelProperty("被资源关联对象类型")
    @NotBlank(message = "objectType cannot be blank.")
    private String objectType;
    @ApiModelProperty("被资源关联对象类型ID")
    private Long objectId;
    @ApiModelProperty("资源类型ID")
    private Long resourceType;

    @Override
    public String toString() {
        return "QryResourceEvt{" +
            "objectType='" + objectType + '\'' +
            ", objectId=" + objectId +
            ", resourceType=" + resourceType +
            '}';
    }

    public String getObjectType() {
        return objectType;
    }

    public void setObjectType(String objectType) {
        this.objectType = objectType;
    }

    public Long getObjectId() {
        return objectId;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    public Long getResourceType() {
        return resourceType;
    }

    public void setResourceType(Long resourceType) {
        this.resourceType = resourceType;
    }
}
